From 008de2bafd01054cad790303d92caad82f939a22 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 26 Jan 2011 11:33:19 -0500 Subject: [PATCH] Document new default handling --- gtk/gtksettings.c | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c index 74a9c7a6ba..50c00be2d5 100644 --- a/gtk/gtksettings.c +++ b/gtk/gtksettings.c @@ -45,19 +45,27 @@ * @Short_description: Sharing settings between applications * @Title: Settings * - * GtkSettings provide a mechanism to share global settings between applications. + * GtkSettings provide a mechanism to share global settings between + * applications. + * * On the X window system, this sharing is realized by an * XSettings - * manager that is usually part of the desktop environment, along with utilities - * that let the user change these settings. In the absence of an Xsettings manager, - * settings can also be specified in RC files. + * manager that is usually part of the desktop environment, along with + * utilities that let the user change these settings. In the absence of + * an Xsettings manager, GTK+ reads default values for settings from + * settings.ini files in + * /etc/gtk-3.0 and $XDG_CONFIG_HOME/gtk-3.0. These files must be valid key files (see #GKeyFile), and have + * a section called Settings. Themes can also provide default values + * for settings by installing a settings.ini file + * next to their gtk.css file. * - * Applications can override system-wide settings with gtk_settings_set_string_property(), - * gtk_settings_set_long_property(), etc. This should be restricted to special - * cases though; GtkSettings are not meant as an application configuration - * facility. When doing so, you need to be aware that settings that are specific - * to individual widgets may not be available before the widget type has been - * realized at least once. The following example demonstrates a way to do this: + * Applications can override system-wide settings with + * gtk_settings_set_string_property(), gtk_settings_set_long_property(), + * etc. This should be restricted to special cases though; GtkSettings are + * not meant as an application configuration facility. When doing so, you + * need to be aware that settings that are specific to individual widgets + * may not be available before the widget type has been realized at least + * once. The following example demonstrates a way to do this: * * gtk_init (&argc, &argv); * -- 2.30.2